import TabsView from '@/layouts/tabs/TabsView'
import BlankView from '@/layouts/BlankView'
// import PageView from '@/layouts/PageView'

// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404'),
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403'),
    },
    // 不在菜单中显示
    {
      path: '/screen',
      name: 'screen',
      component: () => import('@/pages/screen/screen'),
    },
    {
      path: '/',
      name: '首页',
      component: TabsView,
      redirect: '/login',
      children: [
        {
          path: 'homePage',
          name: '首页',
          meta: {
            icon: 'dashboard'
          },
          component: () => import('@/pages/homePage')
        },
        {
          path: 'starManage',
          name: '星链管理',
          meta: {
            icon: 'file-ppt'
          },
          component: BlankView,
          children: [
            {
              path: 'starManage',
              name: '星链列表',
              component: () => import('@/pages/starManage/starManage'),
            },
            {
              path: 'starDetail',
              name: '设备详情',
              meta: {
                invisible:true
              },
              component: () => import('@/pages/starDetail/starDetail'),
            },
          ]
        },
        {
          path: 'maintainManage',
          name: '运维管理',
          meta: {
            icon: 'file-ppt'
          },
          component: BlankView,
          children: [
            {
              path: 'analyse',
              name: '数据分析',
              component: () => import('@/pages/analyse'),
            },
            {
              path: 'malfunction',
              name: '故障报警',
              component: () => import('@/pages/malfunction'),
            },
            {
              path: 'historicalData',
              name: '历史数据查询',
              component: () => import('@/pages/historicalData/historicalData'),
            },
            {
              path: 'historicalTask',
              name: '历史升级任务',
              component: () => import('@/pages/historicalTask/historicalTask'),
            }
          ]
        },
        {
          path: 'screen',
          name: '大屏幕',
          meta: {
            icon: 'file-ppt'
          },
          component: () => import('@/pages/screen/screen')
        },
 
        {
          path: 'monitoring',
          name: '监控画面',
          meta: {
            icon: 'file-ppt',
          },
          component: () => import('@/pages/monitoring')
        },
        {
          path: 'setting',
          name: '设置中心',
          meta: {
            icon: 'file-ppt'
          },
          component: () => import('@/pages/setting/setting')
        },
      ]
    }
  ]
}

export default options
